<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增活动参与人员明细')" />
    <th:block th:include="include :: datetimepicker-css" />
        <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-agentActivityDetails-add">
            <div class="tabs-left">
                <ul class="nav nav-tabs">
                    <li class="active"><a data-toggle="tab" href="#info">活动对象</a>
                    </li>
                    <li class=""><a data-toggle="tab" href="#note">考核标准</a>
                    </li>
                </ul>
                <div class="tab-content ">
                    <div id="info" class="tab-pane active">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">活动名称：</label>
                                        <div class="col-sm-8">
                                            <div class="form-control-static" th:text="${detail.agentActivity.actName}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">服务商名称：</label>
                                        <div class="col-sm-9">
                                            <div class="form-control-static" th:text="${detail.agentName}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">服务商编号：</label>
                                        <div class="col-sm-8">
                                            <div class="form-control-static" th:text="${detail.agentNum}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">活动等级：</label>
                                        <div class="col-sm-8">
                                            <div class="form-control-static" th:text="${detail.levelScope}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">活动状态：</label>
                                        <div class="col-sm-8">
                                            <div class="form-control-static" th:if="${detail.status == 1}" th:text="开启">

                                            </div>
                                            <div class="form-control-static" th:if="${detail.status == 2}" th:text="关闭">

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">备注：</label>
                                        <div class="col-sm-8">
                                            <div class="form-control-static" th:text="${detail.note}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="note" class="tab-pane">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">考核标准1：</label>
                                        <div class="col-sm-8">
                                            <div class="form-control-static" th:text="${detail.norm1}">
                                            </div>
                                            <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>请输入活动月当月开通新增有效商户大于等于?户</span>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">考核标准2：</label>
                                        <div class="col-sm-8">
                                            <div class="form-control-static" th:text="${detail.norm2}">
                                            </div>
                                            <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>所有开通商户中，在活动月次月，即考核月，需有大于等于总户数的?%且满足交易量（计算贷记卡+闪付扫码交易）大于等于两万</span>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">奖励：</label>
                                        <div class="col-sm-8">
                                            <div class="form-control-static" th:text="${detail.award}">
                                            </div>
                                            <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>请输入满足标准1和标准2会在考核月的次月发放?元的底薪奖励</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "salaryPlan/agentActivityDetails"
        $("#form-agentActivityDetails-add").validate({
            focusCleanup: true
        });

        $("input[name='date']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-agentActivityDetails-add').serialize());
            }
        }

        $("input[name='createDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>